package com.linhh.mall.center.common.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Table(name = "user_info")
public class UserInfo extends BaseEntity implements Serializable {


    /**
     * 用户名
     */
    @Column(name = "user_name", nullable = false, length = 255)
    private String userName;

    /**
     * 密码
     */
    @Column(name = "user_password", nullable = false, length = 255)
    private String userPassword;

    /**
     * 描述信息
     */
    @Column(name = "description", nullable = false, length = 1024)
    private String description;

    /**
     * 用户类型,0-运营商,1-商户
     */
    @Column(name = "type", nullable = false, length = 2)
    private Byte type;

    /**
     * 商家ID
     */
    @Column(name = "shop_id", nullable = false, length = 20)
    private Long shopId;

    /**
     * 用户角色列表
     */
    private List<RoleInfo> roleList;


}